//
//  ScheduleViewController.m
//  test2
//
//  Created by 衣尚品1 on 15/5/13.
//  Copyright (c) 2015年 衣尚品1. All rights reserved.
//

#import "ScheduleViewController.h"

@interface ScheduleViewController (){
    UIImageView *tabbarImage;
}

@end

@implementation ScheduleViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    tabbarImage = [[UIImageView alloc] initWithFrame:CGRectMake(50, 102, 15, 15)];
    tabbarImage.image = [UIImage imageNamed:@"MHTabBarIndicator.png"];
    [self.view insertSubview:tabbarImage atIndex:3];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)clickTime:(id)sender {
    [UIView animateWithDuration:0.1 animations:^{
        [tabbarImage setTransform:(CGAffineTransformMakeTranslation(0, 0))];
    }];
    self.classView.hidden = YES;
    self.timeView.hidden = NO;
    self.setupView.hidden = YES;
}
- (IBAction)clickClass:(id)sender {
    [UIView animateWithDuration:0.1 animations:^{
        [tabbarImage setTransform:(CGAffineTransformMakeTranslation(103, 0))];
    }];
    self.classView.hidden = NO;
    self.timeView.hidden = YES;
    self.setupView.hidden = YES;
}
- (IBAction)clickSetUp:(id)sender {
    [UIView animateWithDuration:0.1 animations:^{
        [tabbarImage setTransform:(CGAffineTransformMakeTranslation(208, 0))];
    }];
    self.classView.hidden = YES;
    self.timeView.hidden = YES;
    self.setupView.hidden = NO;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
